package com.example.xml

import groovy.xml.MarkupBuilder

class XmlDataBaseConfigCreate {
	
	static void main(String[] args) {
		
		def mb = new MarkupBuilder(new PrintWriter('d://groovyTest/dbConfig.xml'));
		
		mb.databases{
			
			config{
				dbname('阿里3')
				url('jdbc:postgresql://114.55.247.157:54201/')//ehospital2数据库名称我觉得可配置化
				user('testdev')
				password('kYYfJ76c89alwgJr')
				
			}
			config{
				dbname('阿里2')
				url('jdbc:postgresql://114.55.247.157:54201/')//ehospital2数据库名称我觉得可配置化
				user('testdev')
				password('kYYfJ76c89alwgJr')
				
			}
			
		}
	}
}
